<?php
include('./comm/functions.php');
$user=$_POST['user'];
if(isset($_FILES['pic'])){
     if($_FILES['pic']['error'] !== UPLOAD_ERR_OK){
         exit("上传失败！") ;
    }
        $filename="./images/".$_FILES['pic']['name'];
        if(!move_uploaded_file($_FILES['pic']['tmp_name'],$filename)){
            echo "<br>照片移动失败！";
        }
        $user['pic']=$filename;
        echo "<br>照片上传成功！";
}
// array_menbers2($user);
